package com.foreknow.service.impl;

import com.foreknow.dao.ConstantItemMapper;
import com.foreknow.entity.ConstantItem;
import com.foreknow.service.ConstantItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.concurrent.CompletionService;
@Service
public class ConstantItemServiceImpl implements ConstantItemService {
    @Autowired
    private  ConstantItemMapper constantItemMapper;

    @Override
    public List<ConstantItem> getConstantItemList(ConstantItem record) {
        return constantItemMapper.getConstantItemList(record);
    }


    @Override
    public int insert(ConstantItem record) {
        return constantItemMapper.insert(record);
    }

    @Override
    public int delete(Integer id) {
        return constantItemMapper.delete(id);
    }


    @Override
    public ConstantItem selectByPrimaryKey(Integer id) {
        return constantItemMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ConstantItem record) {
        return constantItemMapper.updateByPrimaryKeySelective(record);
    }


}
